//package com.itheima.mp.mapper;
//
//import com.itheima.mp.domain.po.User;
//import org.apache.ibatis.annotations.Param;
//
//import java.util.List;
//
//public interface UserMapper{
//    void saveUser(User user);
//    void deleteUser(Long id);
//    void updateUser(User user);
//    User queryUserById(@Param("id") Long id);
//    List<User> queryUserByIds(@Param("ids") List<Long> ids);
//}


package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.example.config.cache.aspect.annotation.CacheEvict;
//import com.example.config.cache.aspect.annotation.CacheQuery;
import com.example.entity.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

public interface UserMapper extends BaseMapper<User> {
//    @CacheQuery(databaseName = "damo", tableName = "user") // 自动缓存查询
//    @Override
//    User selectById(Serializable id);
//
//    @CacheEvict(databaseName = "demo", tableName = "user") // 自动删除缓存
//    int updateById(@Param("et") User entity);
}
